<template>
  <div class="notFound">
    <div class="img">
      <img src="../../assets/img/notfound_img/notfound.png" alt="" />
    </div>
    <div class="text">
      <span>抱歉，您所访问的页面小的暂未找到哦~</span><br />
      <span>{{ timer }}s后返回上一级</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "notFound",
  data() {
    return {
      timer: 5,
    };
  },
  created() {
    const times = setInterval(() => {
      this.timer--;
      if (this.timer <= 0) {
        clearInterval(times);
        this.$router.back();
      }
    }, 1000);
  },
};
</script>

<style lang="less" scoped>
.notFound {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  .img {
    width: 80%;

    img {
      width: 100%;
      height: 450px;
    }
  }
  .text {
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 30px;
  }
}
</style>
;
